package com.willpower.eureka.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


/**
 * <p>
 *
 * </p>
 *
 * @author wen-yi
 * @since 2021-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "电话号码")
    private String phoneNumber;

    @ApiModelProperty(value = "性别 0，1，2")
    private Integer sex;

    @ApiModelProperty(value = "生日")
    private String birthday;

    @ApiModelProperty(value = "是否未过期")
    private String accountNonExpired;

    @ApiModelProperty(value = "是否未锁定")
    private String accountNonLocked;

    @ApiModelProperty(value = "密码是否未过期")
    private String credentialsNonExpired;

    @ApiModelProperty(value = "用户是否启用")
    private String enabled;

    private String cTime;

    private String uTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
